import 'package:flutter/material.dart';

class IndexPath {
    int session;
    int row;
    IndexPath({this.session,this.row});
}

/// 返回true表示点击可展开与收起
typedef DidClickedSessionAtIndex = bool Function(int index, Widget header);
typedef DidClickedCellAtIndexPath = void Function(IndexPath indexPath,Widget cell);

typedef IndexPathWidgetBuilder = Widget Function(BuildContext context,IndexPath indexPath);
typedef NumberOfRowsInSection = int Function(int index);